package org.example.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @author sxt
 * @version 1.0
 * @description 服务配置
 * @date 2023/8/3 22:01
 */
@Data
@ToString
public class ServiceConfig {


    /**
     * 服务id
     */
    private String serviceId;

    /**
     * 服务名
     */
    private String serviceName;

    /**
     * 服务ip地址
     */
    private String ipAddress;

    /**
     * 服务所在端口
     */
    private String port;

    public ServiceConfig(String serviceId, String serviceName, String ipAddress, String port) {
        this.serviceId = serviceId;
        this.serviceName = serviceName;
        this.ipAddress = ipAddress;
        this.port = port;
    }

    public ServiceConfig(String serviceName, String ipAddress, String port) {
        this.serviceName = serviceName;
        this.ipAddress = ipAddress;
        this.port = port;
    }

    public ServiceConfig() {
    }
}
